<!DOCTYPE html>
<html lang="zh">

<head>

	<meta charset="utf-8" />
	<meta content="IE=edge" http-equiv="X-UA-Compatible" />
	<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" />
	<title>雀庄公式战</title>
	<meta name='description' content='线下各地立直麻雀雀庄，共同承认的线下段位。 立直麻将 日麻 团体赛'>
	<link href="https://cdn.staticfile.org/twitter-bootstrap/4.6.1/css/bootstrap.min.css" rel="stylesheet" />
	<link href="https://cdn.staticfile.org/bootswatch/4.6.1/darkly/bootstrap.min.css"
		media="(prefers-color-scheme: dark)" rel="stylesheet" />
	<link href="css/main.css" rel="stylesheet" />
	<meta name="baidu-site-verification" content="codeva-xTFwGkMXiL" />
</head>
<!-- <script>
	(function () {
		if (window.location.hostname !== 'rate.r-mj.com') {
			window.location.hostname = 'rate.r-mj.com';
		}
		if (window.location.protocol === 'http:') {
			window.location.protocol = 'https:';
		}
	})()
</script> -->
<!--template-->
<script id="templ_main" type="text/plain">
	<div class="alert alert-warning alert-dismissible fade show" role="alert">
		公式战准入申请目前已恢复，申请公式战请查看<a href="https://docs.qq.com/aio/DQ2xNdGdCRmZTRUZ6" target="_blank">【雀庄主手册】</a>
		<br />
		第一个全国范围线下海选个人赛，中国立直麻将最强战将于10月开赛，赛事详情关注各店宣发。<br />
		友情链接 <a href="https://amae-koromo.sapk.ch/">雀魂牌谱屋</a> / <a href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=8r3EA7Afg6mQ4xKeAhWjaGRpzs5RxaN7&authKey=OTtzayYkqOzG%2FHB2jpii9xOOohWU4eRPDIktQJWeNIrGeI8XhzaxMoCdSqKOtQ%2BR&noverify=0&group_code=712110889">(国家认证的)立直麻将业余段位升段赛</a>
		<button type="button" class="close" data-dismiss="alert" aria-label="Close">
			<span aria-hidden="true">&times;</span>
		</button>
	</div>

	<div class="btn-group shadow-sm rounded btn-block">
		<button type="button" class="filter1 btn btn-info" onclick="webobj.filter1(this,1)">全部</button>
		<button type="button" class="filter1 btn btn-info" onclick="webobj.filter1(this,2)">华北</button>
		<button type="button" class="filter1 btn btn-info" onclick="webobj.filter1(this,3)">东北</button>
		<button type="button" class="filter1 btn btn-info" onclick="webobj.filter1(this,4)">华东</button>
		<button type="button" class="filter1 btn btn-info" onclick="webobj.filter1(this,5)">中南</button>
		<button type="button" class="filter1 btn btn-info" onclick="webobj.filter1(this,6)">西部</button>
	</div>

	<div class="row justify-content-center row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4">

		{{ for(var i=0;i< it.length;i++){var base=it[i];if(base.status==0){continue;} }}
		<div class="col text-center mt-3 card_item ctype_{{=base.ctype}} status_{{=base.status}} ">
			<div class="card shadow">
				<div class="card-body">
					<a href="#/{{=base.cid}}/">
						<h5 class="card-title">
							<span class="badge badge-secondary d-inline d-sm-none">{{=webobj.obj2text.status[base.status]}}</span>
							<span class="text-{{=webobj.obj2text.color[base.ctype]}}">
	                    {{=base.name}}</span>
						</h5></a>
					<span class="d-none d-sm-inline">{{=webobj.obj2text.status[base.status]}}</span>
					<div class="progress mt-2 md-0">
						<div class="progress-bar progress-bar-striped bg-{{=webobj.obj2text.color[base.ctype]+((base.status==4)?'':' progress-bar-animated')}}"
						     role="progressbar" style="width: {{=Math.ceil(base.numerator/base.denominator*100)}}%">
							{{=base.numerator+"/"+base.denominator}}
						</div>
					</div>
				</div>
				<div class="card-footer">
					<p class="card-text">
						<span class="badge badge-pill badge-{{=webobj.obj2text.color[base.ctype]}}">{{=webobj.obj2text.ctype2str[base.ctype]}}</span>
						{{=base.area_name}}
					</p>
				</div>
			</div>
		</div>
		{{ } }}
	</div>

</script>

<script id="templ_area_name" type="text/plain">
	{{=marked.parse(it[0])}}
</script>
<script id="templ_level" type="text/plain">
	<h3>段位榜
		<a class="btn btn-primary m-1" href="javascript:window.webobj.excel1();">下载数据</a>
		{{? window.webobj.this_query[1]!=='1' }}
		<a class="btn btn-info m-1" href="#/1/level/">查看总榜</a>
		{{?}}
	</h3>
	总成绩 = 成績(例如+12.0)之和<br/>
	升段局数 = 挑战升级的对局数(升段后清零，只会取最后N战)<br/>
	升段均順 = 挑战升级的平均顺位（升段后归零，只取最后N战）
	<div class="table-responsive">
		<table class="mytable table table-sm table-striped table-bordered table-hover text-center mt-3" id="table1">
			<thead>
			<tr>
				<th>#</th>
				{{ var base=webobj.cache.base[webobj.this_query[1]]; }}
				{{ for(var i=0;i< it[0].length;i++){ }}
				<th onclick="webobj.sort_table1(this)">{{=it[0][i]}}</th>
				{{ }var abc=Array.from(it),idx=1,cid1=base.cid==='1';abc.shift(); }}
			</tr>
			</thead>
			<tbody>
			{{~abc :value:index}}

			{{ if(!cid1&&value[1]!=base.cid){continue;} }}
			<tr>
				<td>{{=idx}}</td>
				<td class="text-wrap"><a href="./chart/?area={{=value[1]}}&name={{=value[0]}}" target="_blank">{{=value[0]}}</a>
				</td>
				<td>{{=base.cid2name[value[1]]||value[1]}}</td>
				<td>{{=webobj.lv_data[value[2]]||value[2]}}</td>
				{{ for(var i=3;i< value.length;i++){ }}
				<td>{{=value[i]}}</td>
				{{ }idx++; }}
			</tr>
			{{~}}
			</tbody>
	</div>

</script>

<script id="templ_log" type="text/plain">
	<h3>对战记录
		<a class="btn btn-primary m-1" href="javascript:window.webobj.excel1();">下载数据</a>
		{{? window.webobj.this_query[1]!=='1' }}
		<a class="btn btn-info m-1" href="#/1/log/">查看总榜</a>
		{{?}}
		<div class="input-group m-1" role="group" aria-label="Basic example">
			<input type="button" class="form-control btn btn-outline-primary" onclick="webobj.page_go(-1)" value="向前">
			<input type="button" class="form-control btn btn-outline-primary" onclick="webobj.page_go(0)" value="向后">
			<input type="button" class="form-control btn btn-info" onclick="webobj.log_page(true)" value="全部">
			<input id="input_page_1" type="text" class="form-control" value="1">
			<button type="button" class="form-control btn btn-primary" 
			onclick="webobj.page_go(document.getElementById('input_page_1').value)">
				1~<span id="max_1">{{=Math.ceil(it.length/50)}}</span></button>
		</div>

		
	</h3>
	<div class="table-responsive">
		<table class="mytable table table-sm table-striped table-bordered table-hover text-center mt-3">
			<thead>
			<tr id="my_th"></tr>
			</thead>
			<tbody id="my_tbody"></tbody>
		</table>
	</div>
	
	<div class="input-group m-1" role="group" aria-label="Basic example">
		<input type="button" class="form-control btn btn-outline-primary" onclick="webobj.page_go(-1)" value="向前">
		<input type="button" class="form-control btn btn-outline-primary" onclick="webobj.page_go(0)" value="向后">
		<input type="button" class="form-control btn btn-info" onclick="webobj.log_page(true)" value="全部">
		<input id="input_page_2" type="text" class="form-control" value="1">
		<button type="button" class="form-control btn btn-primary" 
		onclick="webobj.page_go(document.getElementById('input_page_2').value)">
			1~<span id="max_2">{{=Math.ceil(it.length/50)}}</span></button>
	</div>
</script>
<!--template-->

<body onhashchange="webobj.onhashchange()">
	<!--navbar-->
	<nav class="navbar navbar-dark bg-primary navbar-expand-sm sticky-top shadow">
		<a class="navbar-brand" href="#">雀庄公式战</a>
		<button aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation"
			class="navbar-toggler" data-target="#navbarTogglerDemo02" data-toggle="collapse" type="button">
			<span class="navbar-toggler-icon"></span>
		</button>

		<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
			<ul class="navbar-nav mr-auto">
				<li class="nav-item">
					<a class="nav-link" href="#">首页</a>
				</li>
				<li class="nav-item"><a class="nav-link" href="./admin/">管理</a> </li>
				<li class="nav-item"><a class="nav-link" href="./table/">月榜</a></li>
				<li class="nav-item"><a class="nav-link" href="./lvup/">升段</a></li>
			</ul>
			<form action="./chart/" class="d-flex">
				<input aria-label="Search" class="form-control mr-2" name="name" placeholder="昵称" type="search">
				<input class="btn btn-light" type="submit" value="搜索" />
			</form>
		</div>
	</nav>

	<div class="jumbotron jumbotron-fluid pt-4 pb-2">
		<div class="container">
			<h1 class="display-4" id="jumbotron_title"></h1>
			<p class="lead" id="jumbotron_text"></p>
		</div>
	</div>

	<!--content-->
	<div class="container" id="content_div"></div>

	<!--javaScript-->
	<script src="https://direct.r-mj.com/cache/apitest.js"></script>
	<script crossorigin="anonymous" src="https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>
	<script crossorigin="anonymous"
		src="https://cdn.staticfile.org/twitter-bootstrap/4.6.1/js/bootstrap.bundle.min.js"></script>

	<script crossorigin="anonymous" src="https://cdn.staticfile.org/dot/1.1.3/doT.min.js"></script>
	<script crossorigin="anonymous" src="https://cdn.staticfile.org/tinysort/3.2.5/tinysort.min.js"></script>
	<script crossorigin="anonymous" src="https://cdn.staticfile.org/marked/11.1.0/marked.min.js"></script>
	<script src="js/main.js"></script>
</body>


</html>